#define  _CRT_SECURE_NO_WARNINGS 1

#include"List.h"



struct ListNode* removeElements(struct ListNode* head, int val)
{
    struct ListNode* dummy = (struct ListNode*)malloc(sizeof(struct ListNode));
    dummy->next = head;
    struct ListNode* curr = dummy;
    while (curr->next)
    {
        if (curr->next->val == val)
        {
            struct ListNode* temp = curr->next;
            curr->next = curr->next->next;
            free(temp);
        }
        else
        {
            curr = curr->next;
        }
    }
    return dummy->next;
}

int main()
{
    struct ListNode* dummy = (struct ListNode*)malloc(sizeof(struct ListNode));
    return 0;
}